package com.neusoft.mapper;

import com.neusoft.domain.Business;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface BusinessMapper {
    List<Business> pageSelectBusiness(@Param("account") String account, @Param("telephone") String telephone);
    @Update("update business set account=#{account} ,telephone=#{telephone} ,contact=#{contact}  where id=#{id}")
    void updateBusiness(Business business);
    @Delete("delete from business where id=#{id}")
    void deleteBusiness(Integer id);
    @Insert("insert into business(account,telephone,contact,reg_time) values (#{account},#{telephone},#{contact},#{reg_time} )")
    void addBusiness(Business business);
}
